package com.jade.zsy.finance.entity;

import com.jade.bss.db.IdEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 收支科目
 * User: jinya
 * Date: 2017/6/3
 * Time: 14:57
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@Entity
@Table(name = "ZSY_FIN_ITEM")
public class FinItem extends IdEntity {
    @Column(name = "parent_id", nullable = false,updatable = true,length = 100)
    private int parentId=0;
    @Column(name = "code", nullable = true, updatable = false)
    private String code;
    @Column(name = "name", nullable = false,updatable = true,length = 100)
    private String name;
    @Column(name = "sequence", nullable = false,updatable = true,length = 100)
    private int sequence=0;
    @Column(name = "type", nullable = true,updatable = true)
    private int type;
    @Column(name = "remark", nullable = true,updatable = true)
    private String remark;

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSequence() {
        return sequence;
    }

    public void setSequence(int sequence) {
        this.sequence = sequence;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
